<template>
  <div
    class="s-global-footer"
    :style="{
      width: (isCollapse ? fullWidth - 64 : fullWidth - 200) + 'px',
      left: (isCollapse ? 64 : 200) + 'px'
    }"
  >
    <div class="s-global-footer-links">
      <a href="https://gitee.com/song-bo/LvaCMS" target="_blank">码云地址</a>
      <a
        href="https://www.kancloud.cn/songbo-3_1/lv-admin/1493574"
        target="_blank"
        >文档地址</a
      >
    </div>
    <div class="s-global-footer-copyright">
      Copyright © {{ date }} 西安咪乐多软件科技有限公司 | LvaCMS v1.0
    </div>
  </div>
</template>
<script>
export default {
  name: "sFooter",
  data() {
    return {
      date: this.getDate()
    };
  },
  props: {
    isCollapse: {
      type: Boolean,
      default: false
    },
    fullWidth: {
      type: Number,
      default: 0
    }
  },
  watch: {
    // yearOrMonth() {
    // 	this.setDays();
    // },
    // propsChange() {
    // 	this.reset = true;
    // 	setTimeout(() => {
    // 		this.initData();
    // 	}, 10);
    // }
  },
  methods: {
    getDate() {
      var date = new Date();
      return date.getFullYear();
    }
  }
};
</script>
<style lang="scss" scoped>
@import "s-footer.scss";
</style>
